<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC_ADMIN__/Css/public.css">
    <script src="__PUBLIC_ADMIN__/Js/jquery-1.7.2.min.js"></script>
    <script src="__PUBLIC_ADMIN__/Js/index.js"></script>
</head>
<body>
<form action="{:U('Category/sortCate')}" method="post">
<table class="table">
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>级别</th>
        <th>排序</th>
        <th>操作</th>
    </tr>
    <foreach name="cate" item="v">
        <tr>
            <td>{$v.id}</td>
            <td>{$v.html}{$v.name}</td>
            <td>{$v.level}</td>
            <td><input type="number" name="{$v.id}" value="{$v.sort}"></td>
            <td>
                [<a href="{:U('Category/addCate',array('pid'=>$v['id']),'')}">添加子分类</a>]
                [<a href="">修改</a>]
                [<a href="">删除</a>]
            </td>
        </tr>
    </foreach>
    <tr>
        <td colspan="5" align="center">
            <input type="submit" style="cursor:pointer" value="排序">
        </td>
    </tr>
</table>
</form>
</body>
</html>